<?php
	echo form_open('c_challenge/create_challenge') . PHP_EOL;
	
	echo validation_errors();
	
	echo $create_error;
	
	echo "<p>CREATE A NEW CHALLENGE" . "</p>" . PHP_EOL;
	
	echo "<p>Name:<br />" . form_input('vName', $name). "</p>" . PHP_EOL;
		
	echo "<p>Abstract:<br />" . form_textarea('vAbstract', $abstract) . "</p>" . PHP_EOL;
	
	echo "<p>Description:<br />" . form_textarea('vDescription', $description) . "</p>" . PHP_EOL;
		
	echo "<p>Status: " . PHP_EOL;
	echo form_radio('vStatus', 'inactive', $status['inactive']) . " Inactive" . PHP_EOL;
	echo form_radio('vStatus', 'active', $status['active']) . " Active</p>" . PHP_EOL;
	
	echo form_submit('create_challenge', 'Create Challenge') . PHP_EOL;	

?>

</form>